import request from '@/utils/request'

//请求用户管理数据 /manage/adminGroup/getList  get  
export const reqadminGroup = () => {
    return request({
        url: "/manage/adminGroup/getList",
        method: "get"
    })
}
//获取资源 /manage/adminResource/getListByPower get 
export const reqGetListByPower = () => {
    return request({
        url: '/manage/adminResource/getListByPower',
        method: 'get'
    })
}

// 获取属性图资源         /manage/adminResource/getList  get 
export const reqGetListTree =()=>{
    return request ({
        url:'/manage/adminResource/getList',
        method:"get"
    })
}

//获取key /manage/adminGroup/getOne?id=EydZWWiR get  /manage/adminGroup/getOne
export const reqKeyList =(params)=>{
    return request ({
        url:"/manage/adminGroup/getOne",
        method:'get',
        params
    })
}
//添加角色    /manage/adminGroup/addOne post  /manage/adminGroup/addOne
export const reqAddOne =(data)=>{
    return request ({
        url:'/manage/adminGroup/addOne',
        method:'post',
        data
    })
}

//修改角色 /manage/adminGroup/updateOne post /manage/adminGroup/updateOne
export const reqUpdateOne =(data)=>{
    return request ({
        url:'/manage/adminGroup/updateOne',
        method:'post',
        data
    })
}
//删除角色 /manage/adminGroup/deleteGroup  get 
export const reqDeleteGroup=(params)=>{
    return request ({
        url:'/manage/adminGroup/deleteGroup',
        method:'get',
        params
    })
}
//请求给角色添加权限 /manage/adminGroup/updateOne post 
export const reqUpdateNode =(data)=>{
    return request ({
        url:'/manage/adminGroup/updateOne',
        method:'post',
        data
    })
}

//请求分页 /manage/adminGroup/getList  get  
export const reqadminGroupPage = (params) => {
    return request({
        url: "/manage/adminGroup/getList",
        method: "get",
        params
    })
}